// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App.vue'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'src/assets/css/panel.css';
import 'src/assets/css/style.css';
import 'src/icons'
import router from 'src/router';
import 'src/components/wl';
import store from 'src/views';
import i18n from 'src/lang';
import { createPopup } from 'src/views/popup_factory';
import 'src/wl/dialog.js';

WLLib.init(Vue, createPopup);

Vue.use(Element,
  {
    size: 'mini',
    i18n: (key: string, value: string) => i18n.t(key, value)
  });
Vue.config.productionTip = false;

// toggleClass(document.body, 'custom-theme');
/* eslint-disable no-new */

initWLUtil(store, Element);

new Vue({
  el: '#app',
  components: { App },
  router,
  i18n,
  store,
  template: '<App/>'
});

